package com.thy.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.common.dto.audit.module.DeletePostDto;
import com.hospital.common.dto.audit.module.PostReviewDto;
import com.hospital.common.pojo.TPostMeta;
import com.hospital.common.vo.audit.module.PostVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 帖子元数据表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-09-26
 */
public interface TPostMetaMapper extends BaseMapper<TPostMeta> {

    Long getSectionId(@Param("userId") Long userId);

    IPage<PostVo> getPost(@Param("page") Page<PostVo> page,@Param("sectionId") Long sectionId);

    void postReviewRefuse(@Param("postReviewDto") PostReviewDto postReviewDto,@Param("userId") Long userId);

    void postReviewThrough(@Param("metaId") Long metaId);

    void deletePost(@Param("dpd") DeletePostDto dpd, @Param("userId") Long userId);
}
